package com.zkthink.ceres.msgs.dto;

import com.zkthink.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 直播的小红心记录
 * </p>
 *
 * @author ck
 * @since 2022-02-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CeresPushMsgsUpdateDTO", description = "直播的小红心记录")
public class CeresPushMsgsUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 发送人id
     */
    @ApiModelProperty(value = "发送人id")
    private Long mid;
    /**
     * 消息类型
     */
    @ApiModelProperty(value = "消息类型")
    private Integer msgType;
    /**
     * 消息内容
     */
    @ApiModelProperty(value = "消息内容")
    @Length(max = 65535, message = "消息内容长度不能超过65,535")
    private String content;
    /**
     * 接收人id
     */
    @ApiModelProperty(value = "接收人id")
    private Long rreceiveId;
    /**
     * 房间id
     */
    @ApiModelProperty(value = "房间id")
    @Length(max = 20, message = "房间id长度不能超过20")
    private String roomId;
    /**
     * 发送人的昵称
     */
    @ApiModelProperty(value = "发送人的昵称")
    @Length(max = 255, message = "发送人的昵称长度不能超过255")
    private String nickname;
    /**
     * 发送人的头像
     */
    @ApiModelProperty(value = "发送人的头像")
    @Length(max = 255, message = "发送人的头像长度不能超过255")
    private String headimg;
    /**
     * 推送时间
     */
    @ApiModelProperty(value = "推送时间")
    private LocalDateTime pushTime;
    /**
     * 推送类型:0:主动推送到消息弹窗1:是接口查询的
     */
    @ApiModelProperty(value = "推送类型:0:主动推送到消息弹窗1:是接口查询的")
    private Integer pushType;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @Length(max = 65535, message = "标题长度不能超过65,535")
    private String title;
}
